package com.toKnow.service;

import com.toKnow.model.entity.*;

public interface ResourcePubService {

    Integer addResource(ResourcePub resourcePub, UserInfoPub userInfoPub);

    Integer storeResource(ResourcePub resourcePub, UserInfoPub userInfoPub);

    Integer updateResourceDraft(Integer draftId, ResourcePub resourcePub, UserInfoPub userInfoPub);

    int addSourceType(ResourceTypePub resourceTypePub);

    int storeSourceType(ResourceTypePub resourceTypePub);

    int addSourceTag(ResourceTagPub resourceTagPub);

    int storeSourceTag(ResourceTagPub resourceTagPub);

    int commentResource(ResourceCommentPub resourceCommentPub,UserInfoPub userInfoPub,Integer resource_id);

    int answerResourceComment(ResourceCommentAnswerPub resourceCommentAnswerPub);

    int likeResource(ResourceLikePub resourceLikePub,Integer user_id,Integer resource_id );


    int likeComment(ResourceCommentLikePub resourceCommentLikePub,Integer comment_id);

    int likeAnswer(ResourceAnswerLikePub resourceAnswerLikePub,Integer answer_id );

    Integer findAuthor(Integer source_id);

}
